fp="python3/math/math.01.txt"
f=open(fp,"r+")
r=True
while r:
    t=int(f.readline(10000))
    fang1=int(f.readline(10000))
    fang2=int(f.readline(10000))
    qian=int(f.readline(10000))
    neng=int(f.readline(10000))
    s1=int(f.readline(10000))
    s2=int(f.readline(10000))
    j1=int(f.readline(10000))
    j2=int(f.readline(10000))
    fang1=fang1/10000
    fang2=fang2/10000
    print(f"速度{fang1}速度{fang2}钱{qian}能量{neng}级数{j1}级数{j2}还剩{s1}还剩{s2}")
    s=str(t)
    s1=str(int(fang1*10000))
    s2=str(int(fang2*10000))
    s3=str(qian)
    s4=str(neng)
    s5=str(s1)
    s6=str(s2)
    s7=str(j1)
    s8=str(j2)
    f=open(fp,"w+")
    f.writelines([s+"\n",s1+"\n",s2+"\n",s3+"\n",s4+"\n",s5+"\n",s6+"\n",s7+"\n",s8+"\n"])
s=str(t)
s1=str(fang1)
s2=str(fang2)
s3=str(qian)
s4=str(neng)
s5=str(s1)
s6=str(s2)
s7=str(j1)
s8=str(j2)
f=open(fp,"w+")
f.writelines([s+"\n",s1+"\n",s2+"\n",s3+"\n",s4+"\n",s5+"\n",s6+"\n",s7+"\n",s8+"\n"])



"""

line=f.readline(10000)
print("read:",line)

t=int(f.readline(10000))
fang1=int(f.readline(10000))
fang2=int(f.readline(10000))
qian=int(f.readline(10000))
neng=int(f.readline(10000))
s1=int(f.readline(10000))
s2=int(f.readline(10000))
j1=int(f.readline(10000))
j2=int(f.readline(10000))
fang1=fang1/10000
fang2=fang2/10000

s=input("输入:")
f.writelines(s)
f.close()

"""